home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AOL File Library: 2,801 to 2,900
/
aol-file-protocol-4400-2801-to-2900.zip
/
AOLDLs
/
C++ Files Library
/
Acere (PowerPlant, Game) 1.2
/
AcereÄ.sit
/
Acereƒ
/
Code
/
CTextDoc.h
< prev
next >
Wrap
Text File
|
1995-03-04
|
1KB
|
49 lines
// ===========================================================================
// CTextDoc.h ⌐1994 Metrowerks Inc. All rights reserved.
// ===========================================================================
#pragma once
#include <LSingleDoc.h>
#include "CardDeck.h"
class LTextEdit;
class WellDeck;
class WellFreeCell;
class WellStack;
class CTextDoc : public LSingleDoc {
public:
// instance variables
WellDeck *theDeckWells[4];
WellFreeCell *theFreeCells[4];
WellStack *theStacks[8];
short currentDeckWell, currentFreeCell, currentStack;
// methods
CTextDoc(LCommander *inSuper, FSSpec *inFileSpec);
virtual ~CTextDoc(); // destructor
RgnHandle cardRgn;
PlayingCard *firstCard /*, *secondCard */, *savedFromCard, *savedToCard;
virtual Boolean IsModified();
virtual void DoAESave(FSSpec &inFileSpec, OSType inFileType);
virtual void DoSave();
virtual void DoRevert();
virtual void DoPrint();
virtual void CheckVictory(void);
virtual void StartNewGame(Boolean isFirstTime);
protected:
LTextEdit *mTextView;
void OpenFile(FSSpec &inFileSpec);
};